// import { Wallet, Crypto } from 'ontology-ts-sdk';
//
// const keyType = Crypto.KeyType.ECDSA;
// console.log('keyType =', keyType)
//
// const keyParameters = new Crypto.KeyParameters(Crypto.CurveLabel.SECP256R1);
// console.log('keyParameters =', keyParameters)
//
// const privateKey = Crypto.PrivateKey.random(keyType, keyParameters)
// console.log('privateKey =', privateKey)
//
// var wallet = Wallet.create('test');
// console.log('wallet =', wallet)
// read .env variables
import config from './config'

import app from './App'

const port = config.port || 3000

app.listen(port, (err) => {
  if (err) {
    return console.log(err)
  }

  return console.log(`server is listening on ${port}`)
})
